import Person from './person' ;
class Teacher extends Person{
    constructor(_name , _age , _klass){
        super(_name , _age);
        this.klass = _klass ;
    }
    introduce(){
        let str,str1,str2;
        str1 = super.introduce() + ` I am a Teacher. I teach Class ${this.klass}.` ;
        str2 = super.introduce() + ` I am a Teacher. I teach No Class.` ;
        str = this.klass? str1:str2;
        return str ;
    }
}
module.exports = Teacher ;